package rsb.goods;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Person {
    private rsb.goods.Phone Phone;
    public void buy() {
        System.out.println("请输入商品数量:输入0退出");
        Scanner scanner =new Scanner(System.in);
        int count = scanner.nextInt();
        if (count==0){
            return;
        }
        System.out.println("请输入商品信息");
        System.out.println("请输入手机品牌");
        String bounce=scanner.next();
        System.out.println("请输入手机尺寸");
        double size=scanner.nextDouble();
        System.out.println("请输入手机价格");
        Double price=scanner.nextDouble();
        System.out.println("请输入手机配置");
        String soc=scanner.next();
        System.out.println("----------------入库清单------------------");
        System.out.println("品牌"+bounce);
        System.out.println("配置"+soc);
        System.out.println("尺寸"+size);
        System.out.println("单价"+price);
        System.out.println("入库数量"+count);
        System.out.println("总价值"+count*price);
    }

    public static void main(String[] args) {
        Person person = new Person();
        person.buy();

    }
}